package com.wkbb.sports.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * @author lbh
 * @date 2021年03月29日 17:58:34
 * @description:
 *
 * 导出 Excel 时，若需要表头，那么相应的实体类需要继承 BaseRowModel，并加入 @ExcelProperty(value = “id”, index = 0) 注解。
 * 其中 value 代表在导出 Excel 时，该字段对应的表头名称；index 代表该字段对应的表头位置（从0开始）。
 */
@Data
public class HlifeWorkExcelDto extends BaseRowModel {

    //@ExcelProperty(value = "ID", index = 0)
    private Integer id;

    @ExcelProperty(value = "项目ID", index = 1)
    private Integer projectId;

    @ExcelProperty(value = "项目名称", index = 2)
    private String projectName;

    @ExcelProperty(value = "学校ID", index = 3)
    private Integer orgId;

    @ExcelProperty(value = "年级ID", index = 4)
    private Integer gradeId;

    @ExcelProperty(value = "年级名称", index = 5)
    private String gradeName;

    @ExcelProperty(value = "班级ID", index =6)
    private Integer classId;

    @ExcelProperty(value = "班级名称", index = 7)
    private String className;

    @ExcelProperty(value = "教师ID", index = 8)
    private Integer teacherId;

    @ExcelProperty(value = "教师名称", index = 9)
    private String teacherName;

    @ExcelProperty(value = "教师头像地址", index = 10)
    private String headImgUrl;

    @ExcelProperty(value = "开始时间", index = 11)
    private Date beginTime;

    @ExcelProperty(value = "结束时间", index =12)
    private Date endTime;

    @ExcelProperty(value = "关联作业规则ID", index = 13)
    private Integer ruleId;

    @ExcelProperty(value = "备注", index = 14)
    private String remark;

    @ExcelProperty(value = "状态", index = 15)
    private Integer status;

    @ExcelProperty(value = "当前班级选中的人数", index = 16)
    private Integer selectedCount;

    @ExcelProperty(value = "当前班级所有人数", index =17)
    private Integer totalCount;

    @ExcelProperty(value = "创建时间", index = 18)
    private Date createTime;

    @ExcelProperty(value = "创建人", index = 19)
    private String createBy;

    @ExcelProperty(value = "修改时间", index =20)
    private Date updateTime;

    @ExcelProperty(value = "修改人", index = 21)
    private String updateBy;

}
